package cn.mdmm.baiyi;

import org.junit.Test;

import cn.mdmm.base.PostClient;
import cn.mdmm.base.URLCOMMON;

public class BaiyiTest {
	
	/**
	 * <p>微信关注</p>
	 */
	@Test
	public void upload(){
		StringBuffer xml = new StringBuffer();
		xml.append("{\"masterId\":\"20182\",\"nodeNum\":6,\"nodes\":[{\"nodeId\":\"201820224\",\"nodeVoltage\":\"3.3V\",\"eventType\":3},{\"nodeId\":\"201820226\",\"nodeVoltage\":\"3.3V\",\"eventType\":3}]}");
		try {
			String resStr =PostClient.doPost("http://m.modoumama.cn/baiyi/upload", xml.toString(), "html");
			System.out.println(resStr);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
